#!/bin/bash

###this is going to split the pane into four 
###even horizontal panes
tmux split-window -v
sleep 1
tmux send-keys -t 0 "clear" C-m
tmux select-pane -t 0

###this will split each of the four panes
###vertically, resulting in eight seperate 
###panes

for i in 1 
do
tmux select-pane -t $i
tmux split-window -h
sleep 1
done

for h in 0 
do
tmux select-pane -t $h
tmux split-window -h
sleep 1
done


#this goes to each pane and sends a command, in this case - just identifies the pane. 

tmux select-pane -t 0
tmux send-keys -t 0 "mutt" C-m
tmux select-pane -t 1
tmux send-keys -t 1 "sic -h irc.swiftirc.net -n Acou_Bass -k supersecretpassword" C-m
tmux select-pane -t 2
tmux send-keys -t 2 "newsbeuter" C-m
tmux select-pane -t 3
tmux send-keys -t 3 "sic -h localhost -k supersecretpassword" C-m
